package com.ruoyi.shanghuliebiao2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shanghuliebiao2.mapper.CheStatementMapper;
import com.ruoyi.shanghuliebiao2.domain.CheStatement;
import com.ruoyi.shanghuliebiao2.service.ICheStatementService;

/**
 * 收支明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class CheStatementServiceImpl implements ICheStatementService 
{
    @Autowired
    private CheStatementMapper cheStatementMapper;

    /**
     * 查询收支明细
     * 
     * @param id 收支明细主键
     * @return 收支明细
     */
    @Override
    public CheStatement selectCheStatementById(Long id)
    {
        return cheStatementMapper.selectCheStatementById(id);
    }

    /**
     * 查询收支明细列表
     * 
     * @param cheStatement 收支明细
     * @return 收支明细
     */
    @Override
    public List<CheStatement> selectCheStatementList(CheStatement cheStatement)
    {
        return cheStatementMapper.selectCheStatementList(cheStatement);
    }

    /**
     * 新增收支明细
     * 
     * @param cheStatement 收支明细
     * @return 结果
     */
    @Override
    public int insertCheStatement(CheStatement cheStatement)
    {
        return cheStatementMapper.insertCheStatement(cheStatement);
    }

    /**
     * 修改收支明细
     * 
     * @param cheStatement 收支明细
     * @return 结果
     */
    @Override
    public int updateCheStatement(CheStatement cheStatement)
    {
        return cheStatementMapper.updateCheStatement(cheStatement);
    }

    /**
     * 批量删除收支明细
     * 
     * @param ids 需要删除的收支明细主键
     * @return 结果
     */
    @Override
    public int deleteCheStatementByIds(Long[] ids)
    {
        return cheStatementMapper.deleteCheStatementByIds(ids);
    }

    /**
     * 删除收支明细信息
     * 
     * @param id 收支明细主键
     * @return 结果
     */
    @Override
    public int deleteCheStatementById(Long id)
    {
        return cheStatementMapper.deleteCheStatementById(id);
    }
}
